package com.example.shopping.entity;

import jakarta.persistence.*;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Entity
@Table(name = "orders")
@Data
public class Order implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private int oid;
    private int uid;
    private String gid;
    private int quantity;
    private double money;
    private LocalDateTime buytime;
    private String receiver;
    private String rphone;
    private String mailingaddress;
    private LocalDateTime backtime;
    private String status;
    private float price;
}
